
use "/Users/scottfabramson/Dropbox/io_endogenous_replication/main_text_do/tables/table_7/table_7.dta",clear





***** Table 7 ******




tsset Name Year

tabulate Year, g(y)

tabulate Region, g(r)


gen log_w_dist_dummy = log(w_dist_dummy)


generate UD= urban_pop/Area*1000

gen lparl = log(mean_parl_100+.01)

gen lnparl = log(mean_nparl_100+.01)

gen lU = log(urban_pop+.01)

gen lUD = log(UD+.001)






xtreg mean_parl_100 log_w_dist_dummy UD y1 y2 y3 y4 y5 , fe robust cluster(Name),if y7==0

eststo a1


xtreg mean_parl_100  mean_sov_100 UD y1 y2 y3 y4 y5 , fe robust cluster(Name),if y7==0

eststo a2

xtreg mean_parl_100 log_w_dist_dummy mean_sov_100 UD y1 y2 y3 y4 y5 , fe robust cluster(Name),if y7==0


eststo a3

xtdpdsys mean_parl_100 log_w_dist_dummy UD   y2 y3 y4 y5 y6,  lag(1) two vce(robust)


estat abond
eststo a4


xtdpdsys mean_parl_100 mean_sov_100 UD y2 y3 y4 y5 y6,  lag(1) two vce(robust)


eststo a5

estat abond


xtdpdsys mean_parl_100 log_w_dist_dummy UD mean_sov_100  y2 y3 y4 y5 y6,  lag(1) two vce(robust)

eststo a6

estat abond






